var columnsSet = [{
	title: "编号",
	data: "id",
	edit: true,
	className:"operate",
	readonly: true
}, {
	title: "有效日期权重",
	data: "effDate",
	className:"operate",
	edit: true
}, {
	title: "评估价值权重",
	data: "evValue",
	className:"operate",
	edit: true,
}, {
	title: "不可使用日期权重",
	data: "unavDate",
	className:"operate",
	edit: true,
}, {
	title: "使用量权重",
	data: "usageCou",
	className:"operate",
	edit: true
}, {
	title: "使用权重范围",
	data: "usageScope",
	className:"operate",
	edit: true,
}, {
	title: "使用时间段权重",
	data: "useTimePeriod",
	className:"operate",
	edit: true
}, {
	title: "使用规则权限",
	data: "usageRules",
	className:"operate",
	edit: true
}, {
	title: "更新操作员",
	data: "updOpr",
	className:"operate",
}, {
	title: "相关操作",
	className: "operate",
	width: "120px",
	render: function(value, type, row) {
		return `
            <button type="button" class="btn btn-primary btn-sm edit">编辑</button>
            <button type="button" class="btn btn-info btn-sm trial">试算</button>
              `
	}
}]

export {
	columnsSet as columnsSet
}


var columnsTrialSet = [{
	title: "优惠券类型",
	data: "type",
	options: [{
		key: "折扣券",
		value: "rebate"
	}, {
		key: "抵用券",
		value: "voucher"
	}, {
		key: "代金券",
		value: "cash"
	}],
}, {
    title: "抵用券限制金额",
    data: "restricted",
    edit: false
},{
	title: "商区/园区",
	data: "dbt",
	options: [{
		key: "商区",
		value: "busimess"
	}, {
		key: "园区",
		value: "park"
	}]
}, {
	title: "有效起始日期",
	data: "begin",
	datetime: true,
	readonly:true
}, {
	title: "有效终止日期",
	data: "end",
	datetime: true,
    readonly:true
}, {
	title: "不可使用日期",
	data: "disableDate",
	checkboxOptions: [{
		key: "星期一",
		value: "1"
	}, {
		key: "星期二",
		value: "2"
	}, {
		key: "星期三",
		value: "3"
	}, {
		key: "星期四",
		value: "4"
	}, {
		key: "星期五",
		value: "5"
	}, {
		key: "星期六",
		value: "6"
	}, {
		key: "星期天",
		value: "7"
	}],
}, {
	title: "使用规则权重",
	data: "useRule",
	checkboxOptions: [{
		key: "和其他优惠券一起使用",
		value: "D"
	}, {
		key: "叠加使用",
		value: "M"
	}]
}, {
	title: "使用开始时间",
	data: "useStartTime",
	options: [{
		key: "0:00",
		value: "0"
	}, {
		key: "1:00",
		value: "1"
	}, {
		key: "2:00",
		value: "2"
	}, {
		key: "3:00",
		value: "3"
	}, {
		key: "4:00",
		value: "4"
	}, {
		key: "5:00",
		value: "5"
	}, {
		key: "6:00",
		value: "6"
	}, {
		key: "7:00",
		value: "7"
	}, {
		key: "8:00",
		value: "8"
	}, {
		key: "9:00",
		value: "9"
	}, {
		key: "10:00",
		value: "10"
	}, {
		key: "11:00",
		value: "11"
	}, {
		key: "12:00",
		value: "12"
	}, {
		key: "13:00",
		value: "13"
	}, {
		key: "14:00",
		value: "14"
	}, {
		key: "15:00",
		value: "15"
	}, {
		key: "16:00",
		value: "16"
	}, {
		key: "17:00",
		value: "17"
	}, {
		key: "18:00",
		value: "18"
	}, {
		key: "19:00",
		value: "19"
	}, {
		key: "20:00",
		value: "20"
	}, {
		key: "21:00",
		value: "21"
	}, {
		key: "22:00",
		value: "22"
	}, {
		key: "23:00",
		value: "23"
	}]
}, {
	title: "使用结束时间",
	data: "useEndTime",
	options: [{
		key: "0:00",
		value: "0"
	}, {
		key: "1:00",
		value: "1"
	}, {
		key: "2:00",
		value: "2"
	}, {
		key: "3:00",
		value: "3"
	}, {
		key: "4:00",
		value: "4"
	}, {
		key: "5:00",
		value: "5"
	}, {
		key: "6:00",
		value: "6"
	}, {
		key: "7:00",
		value: "7"
	}, {
		key: "8:00",
		value: "8"
	}, {
		key: "9:00",
		value: "9"
	}, {
		key: "10:00",
		value: "10"
	}, {
		key: "11:00",
		value: "11"
	}, {
		key: "12:00",
		value: "12"
	}, {
		key: "13:00",
		value: "13"
	}, {
		key: "14:00",
		value: "14"
	}, {
		key: "15:00",
		value: "15"
	}, {
		key: "16:00",
		value: "16"
	}, {
		key: "17:00",
		value: "17"
	}, {
		key: "18:00",
		value: "18"
	}, {
		key: "19:00",
		value: "19"
	}, {
		key: "20:00",
		value: "20"
	}, {
		key: "21:00",
		value: "21"
	}, {
		key: "22:00",
		value: "22"
	}, {
		key: "23:00",
		value: "23"
	}]
}, {
	title: "电子券面值",
	data: "denomination",
	edit: true,
}, {
	title: "商品类型总数",
	data: "dishNum",
	edit: true
}, {
	title: "限制商品类型数",
	data: "unDishType",
	edit: true
}, {
	title: "电子券使用量(0~1间的两位小数)",
	data: "num",
	edit: true
}, {
	title: "人均消费",
	data: "per",
	edit: true
}, {
	title: "评估平均价值",
	data: "worth",
	edit: true
}]

export {
	columnsTrialSet as columnsTrialSet
}
